package com.qhx.backme.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 专门用来封装错误的
 * @author: qhx20040819
 * @date: 2023-10-23 19:02
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultVO {

    private Integer code;
    private String mes;



    //请求参数缺失:404001
    public static ResultVO PARAM_EMPTY = new ResultVO(404001, "请求参数缺失");
    //查询内容缺失:404002
    public static ResultVO QUERY_EMPTY = new ResultVO(404002, "查询内容不存在");
    //信息已存在:500001
    public static ResultVO INFO_EXISTS = new ResultVO(500001, "信息已存在！");

    public static ResultVO CONTRACT_ERROR = new ResultVO(500002, "智能合约请求存在问题");

    public static ResultVO TOKEN_EMPTY = new ResultVO(500003, "Token已失效");

    public static ResultVO ADDRESS_INVALID = new ResultVO(500004, "操作地址不合法");

    public static ResultVO COMPANY_NOT_EXIST = new ResultVO(500005, "公司不存在");
    public static ResultVO BANK_NOT_EXIST = new ResultVO(500006, "公司不存在");
    public static ResultVO AMOUNT_NOT_ENOUGH = new ResultVO(500007, "金额不足");

}
